﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ParsingDoubles
{
    class ParsingDoubles
    {
        static void Main()
        {
            string input = Console.ReadLine();
            string unparsedNum = input.Trim().Replace(',', '.');
            System.Globalization.CultureInfo newCulture = new System.Globalization.CultureInfo("bg-BG");
            newCulture.NumberFormat.NumberDecimalDigits = 2;
            newCulture.NumberFormat.NumberGroupSeparator = " ";
            newCulture.NumberFormat.NumberDecimalSeparator = ".";
            double number = double.Parse(unparsedNum, newCulture);
            Console.WriteLine(number);
        }
    }
}
